package com.xadmin.designing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xadmin.sys.common.utils.Page;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

import com.xadmin.designing.mapper.Test05Mapper;
import com.xadmin.designing.pojo.Test05;
import com.xadmin.designing.service.Test05Service;

// //  modeName pojo mapper service

@Service
public class Test05ServiceImpl extends ServiceImpl<Test05Mapper, Test05> implements Test05Service {

    @Resource
    private Test05Mapper mapperTmp;

    @Override
    public Page<Test05> getAllByPage(Page<Test05> page) {
        List<Test05> list = mapperTmp.getAllByPage(page);
        page.setList(list);
        int tatalCount = mapperTmp.getCountByPage(page);
        page.setTotalCount(tatalCount);
        return page;
    }
}
